package com.idanchuang.component.redis;

import com.idanchuang.component.redis.aspect.RedisLimitAspect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yjy
 * @date 2019/11/27 11:09
 **/
@Configuration
public class ComponentRedisLimitAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public RedisLimitAspect redisLimitAspect() {
        return new RedisLimitAspect();
    }

}
